package com.runningboy.nacosconsumerfeign.controller;

import com.runningboy.nacosconsumerfeign.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class NacosConsumerFeignController {
    @Autowired
    private FeignService feignService;

    @GetMapping("/test/feign/{message}")
    public String test(@PathVariable String message){
        return feignService.test(message);
    }
}
